<?php
/**
 * Copyright 2011  SURFfoundation
 * 
 * This file is part of ESCAPE.
 * 
 * ESCAPE is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * ESCAPE is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with ESCAPE.  If not, see <http://www.gnu.org/licenses/>.
 * 
 * For more information:
 * http://escapesurf.wordpress.com/
 * http://www.surffoundation.nl/
 * 
 * Contact: d.vierkant@utwente.nl
 * 
 * @license http://www.gnu.org/licenses/gpl.html GNU GPLv3
 */
?>
<?php
	/* @var $repositoryUi escape_repositoryui_RepositoryUi */
	$repositoryUi =& $this->requestAttributes['repositoryUi'];
	/* @var $errorMessages array */
	$errorMessages =& $this->requestAttributes['errorMessages'];
?>
<?php $this->displayHeader(); ?>

<div class="escape_Section">

<div class="escape_Selection">

<div class="escape_SectionTitle">Reset your password</div>

<?php
	if(count($errorMessages) > 0)
	{
?>
<div>
<?php
		foreach($errorMessages as $errorMessage)
		{
?>
<div class="escape_Error"><?php print $errorMessage; ?></div>
<?php
		}
?>
</div>
<br />
<?php
	}
?>

<form method="post" action="sendPasswordResetEmail">

<p>
Please enter the user ID of the ESCAPE account for which you want to reset the password.
An email will be sent to your email address containing instructions to reset your password.
</p>

<table class="escape_FormTable">
<tr>
<td>
User ID:
</td>
<td>
<input type="text" name="userId" value="" />
</td>
</tr>
</table>

<input type="submit" value="Send email" />

</form>

</div>

</div>

<?php $this->displayFooter(); ?>
